package com.ds.infrastructure.hyperspace.console.dao.dao;

import com.ds.infrastructure.hyperspace.console.dao.mapper.TbMetricsTaskMapper;
import com.ds.infrastructure.hyperspace.console.entity.page.TbPageWhere;
import com.ds.infrastructure.hyperspace.console.entity.table.TbMetricsTask;
import com.ds.infrastructure.hyperspace.console.entity.where.TbCustomWhere;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: yaozhendong
 * @create: 2019-11-01 09:24
 **/

@Repository
public class TbMetricsTaskDao {
    @Autowired
    TbMetricsTaskMapper tbMetricsTaskMapper;

    public TbMetricsTask selectByPrimaryKey(Long id) {
        return tbMetricsTaskMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TbMetricsTask record) {
        return tbMetricsTaskMapper.updateByPrimaryKeySelective(record);
    }

    public int insertSelective(TbMetricsTask record) {
        return tbMetricsTaskMapper.insertSelective(record);
    }

    public List<TbMetricsTask> selectListForPage(TbMetricsTask where, TbCustomWhere mapWhere, TbPageWhere pageWhere) {
        return tbMetricsTaskMapper.selectListForPage(where, mapWhere, pageWhere);
    }

    public int selectListForPageCount(TbMetricsTask where, TbCustomWhere mapWhere) {
        return tbMetricsTaskMapper.selectListForPageCount(where, mapWhere);
    }

    public int delete(TbCustomWhere mapWhere) {
        return tbMetricsTaskMapper.delete(mapWhere);
    }
}
